package com.hhkj.study.admin.course.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.ruoyi.common.core.domain.BizBaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

/**
*
* @author SERVER
* @since 2024-09-18
*/
@TableName(value = "x_course", autoResultMap=true)
@EqualsAndHashCode(callSuper = true)
@Data
public class Course extends BizBaseEntity {

	/**
	 * 名称
	*/
	private String name;
	/**
	 * 考试年份
	*/
	private Integer examYear;
	/**
	 * 课程小类
	*/
	private Long categoryId;
	/**
	 * 课程类目
	*/
	private Long kindId;

	@TableField(typeHandler = JacksonTypeHandler.class)
	private List<Long> teacherIdList;

	/**
	 * 是否线下课，1是线下课，0线上课
	*/
	private Integer offlineFlag;
	/**
	 * 是否上架，1上架0下架
	*/
	private Integer publishedFlag;
	/**
	 * 说明
	*/
	private String descr;

	@TableField(typeHandler = JacksonTypeHandler.class, value="structure_json")
	private List<CourseStructure> structureJson;

	/**
	 * 统计课程关联的直播/视频等数量
	 */
	@TableField(typeHandler = JacksonTypeHandler.class)
	private CourseResourceInfo assocResourceStat;
}